#ifndef FFMPEGEXTRA_DOWNLOADMANAGER_HPP
#define FFMPEGEXTRA_DOWNLOADMANAGER_HPP

#include <mutex>
#include <vector>
#include "Downloader.hpp"

namespace Eyer {
    class DownloadManager {
    public:
        static DownloadManager * instance;
        static std::mutex instanceMut;
        static DownloadManager * GetInstance();

        DownloadManager();
        ~DownloadManager();
        std::shared_ptr<Downloader> GetDownloader(const std::string & _path);

    public:
        std::mutex downloaderMut;
        std::vector<std::shared_ptr<Downloader>> downloaderVec;

    };
}

#endif //FFMPEGEXTRA_DOWNLOADMANAGER_HPP
